#ifndef _APP_DESKTOP_TASKBAR_H
#define _APP_DESKTOP_TASKBAR_H

#include"winctl.h"
#include<gui.h>
#include<sys/list.h>

#define TASKBAR_HEIGHT_DEFAULT 48

#define TASKBAR_COLOR_DEFAULT GUI_BLACK

typedef struct 
{
    gui_spirit_t *spirit;
    gui_color_t taskbar_color;
    gui_color_t winctl_backcolor; //winctl background color
    gui_color_t winctl_activecolor; //winctl active color
    int screen_width;
    int screen_height;
    list_t winctl_list_head; //winctl list 
    winctl_t *last_winctl;  //last access winctl
    int icon_msgid;         //icon msg queue
    gui_spirit_t *clock_label;
}taskbar_t;

extern taskbar_t taskbar;

int taskbar_init();
void taskbar_exit();
void taskbar_drawbackground();

#endif